#define _CRT_SECURE_NO_WARNINGS


#include <iostream>

using namespace std;

class Date
{
public:
	Date(int _a = 0, int _b = 0, int _c = 0)
	{
		a = _a;
		b = _b;
		c = _c;
		arr = new int[10];
	}
	~Date()
	{
		delete[]arr;
		a = b = c = 0;
	}
	void Print()
	{
		cout << a << " " << b << " " << c << " " << &arr << endl;
	}
	int* arr;
	int a;
	int b;
	int c;
};
int main()
{
	/*Date d1;
	Date d2(d1);
	d1.a = 100;
	d2.b = 50;
	d1.Print();
	d2.Print();*/

	int* a = new int;
	cout << *a << endl;

	int* b = new int(10);
	cout << *b << endl;

	int* c = new int;
	new(c)int(99);
	cout << *c << endl;

	int* arr = new int[10];
	for (int i = 0; i < 10; i++)
	{
		arr[i] = i;
	}
	for (int i = 0; i < 10; i++)
	{
		cout << arr[i] << endl;

	}
	return 0;
}